public class Cat extends Animal{
    public Cat(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        System.out.println(name + "吃鱼~~~");
        super.eat();
    }

    void mew() {
        System.out.println(name +this.age +"喵喵喵~~~");
    }


//    public static void main(String[] args) {
//        Cat cat = new Cat();
//        cat.name = "甜饼";
//        cat.age = 10;
//        System.out.println(cat.name);
//        System.out.println(cat.age);
//        cat.eat();
//        cat.sleep();
//        cat.mew();
//
//    }

}
